<template>
  <div class="component-center">
    <!-- 页面标题 -->
    <div class="page-header">
      <h1>组件中心</h1>
      <p>丰富的UI组件库，提升开发效率</p>
    </div>

    <!-- 子路由内容 -->
    <div class="component-content">
      <router-view></router-view>
    </div>
  </div>
</template>

<script setup>
import { onMounted } from 'vue'
import { useRouter, useRoute } from 'vue-router'

const router = useRouter()
const route = useRoute()

onMounted(() => {
  // 页面初始化逻辑
})
</script>

<style scoped lang="scss">
.component-center {
  padding: 24px;
  
  .page-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    
    h1 {
      font-size: 36px;
      font-weight: 700;
      margin: 0 0 12px 0;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    p {
      font-size: 18px;
      margin: 0;
      opacity: 0.9;
    }
  }
  
  .component-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    min-height: 600px;
  }
}
</style>
